import request from '@/utils/request'

/**
 * 获取分页售后服务列表
 * @returns {Promise<AxiosResponse>}
 */
export function getAfterSalesRecordsList(params) {
  return request({
    url: '/after-sales-service/list',
    method: 'get',
    params
  })
}

/**
 * 更新售后服务记录
 * @param {*} data 
 * @returns 
 */
export function updateAfterSalesRecord(data) {
  return request({
    url: '/after-sales-service',
    method: 'put',
    data
  })
}

/**
 * 删除售后服务记录
 * @param {*} data 
 * @returns 
 */
export function deleteAfterSalesRecords(ids) {
  return request({
    url: '/after-sales-service',
    method: 'delete',
    data: ids
  })
}


export default { 
  getAfterSalesRecordsList
}
